package com.gengine.media.events
{
	import flash.events.*;
	
	public class MediaPlayEvent extends Event
	{
		public var text:String;
		protected var _target:Object;
		public static const IO_ERROR:String = "ioError";
		public static const ERROR:String = "error";
		public static const OPEN:String = "open";
		public static const PROGRESS:String = "progress";
		public static const COMPLETE:String = "complete";
		public static const INIT:String = "init";
		public static const PLAY:String = "play";
		public static const SEEK:String = "seek";
		public static const PAUSE:String = "pause";
		public static const RESUME:String = "resume";
		public static const STOP:String = "stop";
		public static const BUFFERING:String = "buffering";
		public static const PLAYING:String = "playing";
		public static const PLAY_COMPLETE:String = "playComplete";
		
		public function MediaPlayEvent(param1:String, param2:Object, param3:String)
		{
			super(param1, false, false);
			this._target = param2;
			this.text = param3;
			
		}
		
		override public function clone() : Event
		{
			return new MediaPlayEvent(this.type, this._target, this.text);
		}
		
		override public function get target() : Object
		{
			return this._target;
		}
		
		public function set target(param1:Object) : void
		{
			this._target = param1;
			
		}
		
	}
}
